Fix many to many multiple add

The two added tests test_adding_multiple_related_objects and test_querying_multiple_related_objects_on_added_object were both failing,
this pull request fixes them.

This pull request includes the code included in pull request #17 .