add scala exception handling test case