testing with fake HTTP server, minor refactorings
adding test data