Added test for handler authentication