tests failing but psql problem sorted