Normalizing ApplicationContext for tests