Add simple round-trip test suite for the API