Added negative cases to test