refactored tests to new http