Wrote correct unit tests for many to many relation.