Extracted http into services module and set up unit tests