tests working locally with postgres