[#1] Added tests for helper functions