fixed a couple of unit tests, added an argument to the fake database constructor