Testing DatabaseObject serialization