I want to use TestNotesMigration from within InMemoryRepository at the
time the schema is created. The previous approach of calling setFromEnv
from AbstractDaemonTest#beforeTest was too late for this usage. There is
no way to move it earlier in AbstractDaemonTest, because we don't have
the TestNotesMigration until it's injected, which is after the schema is
created.
Instead, move initialization into the TestNotesMigration constructor, so
we never use an uninitialized instance. Keep the setFromEnv
functionality, but call it resetFromEnv. Call it after tests in case
tests have modified the values during tests.
Change-Id: Ib7cdcd97792edf4d278cdaea735a4fbedfd49ca3