added test for helper function createParamsObject