start adding test files
add mock in-memory database and FactoryMuff for tests
merge tests branch