20👍
✅
The answer: I had to make the test user a superuser:
CREATE USER test WITH PASSWORD 'test';
and then give the user permissions to create databases:
ALTER USER test CREATEDB;
Source:stackexchange.com