changed the test cases . added assert and exception expected statements