created serializeParams method and tests for it
small fix
refactored serialize methods method
created separateUriParams method and test for it
small fix