Add basic init/serialisation tests for API resources