Fixed unit tests for HTTP controllers

Change-Id: I43e118a6fb3e907a090a0af6e7682547585823b5