Fix #938
'New' means 'new', not 'clone'
Added unit test
Fixed tests
Merge pull request #959 from sjinks/issue-938

Fix broken hasManyToMany()