added new tests for helper functions