Putting entity deserialization test in the propert place