fixed test env, add :
test:
  adapter: postgresql
  encoding: utf8
  database: gpwanalizer_test
  username: postgres
  password: TWOJEHASLO
  host: 127.0.0.1
  port: 5432

to your database.yml

run db:migrate