added spec for helper method