Add lua exception handling test code