Added tests for helpers functions