added test cases for related M2M fields