Test removing and clearing in test_depend_on_m2m