Completed unit-testing the http service