newWithValues: test refactored to use instanceof
newWithValues: refactored - use Object.create
Merge pull request #827 from herby/newvalue-refactor

Newvalue refactor