Removed "integrationTest" code and updatet dbRefresh file so that it uses the test-db
Started refactoring of unit tests + prepared integrationtests