Fix repo and add tests against localDb