unit test for a help method