fix(tests): mock postgresql should wait until initialization complete
Merge pull request #2037 from gabrtv/fix-controller-test

fix(tests): mock postgresql should wait until initialization complete