implemented some tests for http bakery

Perhaps pull this into package_test.go and rename it to TestPackage, to fit with tests in other packages.