Fix running tests with no running application