fixed test cases for helper methods