Add tests for API helpers

* Tests for serialization helper routines