Added test cases for validation exception and system exception