In-memory tests for searching changes

Use InMemoryModule to inject everything needed to manually insert
commits into a repo and changes into a database, then query the
results.

Change-Id: I22f6d663039039dd4d3f2189e587dbd22f11252b
3 files changed