Added some negative unit test cases.