add test with database Postgres