Fixed DataValues JS tests broken in Ib52694b932b5f9bdc0949b357960917c06593ef2

Also renamed getObject into getConstructor in the tests for correctness.

Change-Id: I9c1e18ee55a905b5d9d29f32be22cc883653d3cc