Test of the resonating group method in a three-particle problem