refactored tests a bit; also changes in Http client to send request body