Made some tests run in a seperate process. also mocking the usergateway more to prevent travisci strict errors