fixed test resposne not in unitTest mode
added unit test detect for setcookie