Fix bug with HttpControllerTestCase