fixing httpstatucode unit test