Repaired application context for tests.