small fix
created serializeMethods method and tests for it
created test for serializeRequest method