Add more tests for m2m relationships