fixed race condition when running tests
sometimes the test run before the http server was ready, which caused timouts
corrected the relative require pathes (uses __dirname now)
added travis mongodb dependency