Made SetupTest run without actually accessing a real database

This enabled running the test when using a DB different then MySQL and when not having a full MW setup

Change-Id: I07071d18e1dd6e47d4ad6886fe9715900773aafc
Merge "Made SetupTest run without actually accessing a real database"