Added test for boolean flag of HttpHandler