ValueParser QUnit tests: Renamed getObject to getConstructor

Change by H. Snater. Ported from https://gerrit.wikimedia.org/r/#/c/102091/