OK. There is no test cases explicitly check not legend. Thus I've added test cases also.