refactor test case
add new tests for helper