Feature/postgres tests