Fix running tests in non-spring env