create unit test for helper