Fix request serialization
Minor change
Add first unit tests for request