Add custom exception test case