Ensuring attributes hash does not get changed by findOrCreate

- using clone to prevent modification of original attributes hash
- adding test to cover this scenario
Merge pull request #339 from dvrenterghem-ibuildings/master

Ensure attributes hash does not get changed by findOrCreate