Writing tests for Object.assign