updated tests to use the http handler