Added unit test to show cookie based authentication