Add tests for the new manytomany relationship and update documentation.