Added check http referal unit tests to base CGI and desktop CGI

The desktop unit test will fail until https://github.com/Zentyal/zentyal/pull/274 is merged along this