Ensuring attributes hash does not get changed by findOrCreate

- using clone to prevent modification of original attributes hash
- adding test to cover this scenario