Fix running tests with swagger