Fixing testsuite (DocControllerTest.testWMCService)

Better mocking of objects (database related), no need to have a full
postgres set up locally for only testing.