Added test cases for m2m fields, reverse relational fields and generic relations.