Add some tests for Serializer