ERROR: You should be logged in to postgresql

Did you try running the tests manually?

You can do one more thing: close the terminal with the command exit. Then re-open the terminal asnd try.

Check out these troubleshooting steps as well.