fix serialization and auth test