Added negative test case for the api testing.