refactored related m2m tests