Fixed Deserialization Bug and reintroduced the missing test