changed testing to use mocks in stead of a real server to speed up the testing process.