Adds conditions to the upsert operation

Conditions need to be added to the newly created object. The code was only
creating objectId.

Resolves #54
Merge branch 'nukulb/54' of https://github.com/hubba/Mockgoose into hubba-nukulb/54
adding tests for issue \#54