Add tests that an entity behaves like a record
Do not depend on pgsql for production