added a test case for checking exceptions
donot forget to add a file