Added integration test and switched to Spark as embedded HTTP server