added test cases to legal test cases