Add test for handler func panic