fix test and rename method