Added test for the helper method