Add test case for invalid handler URLs