Tests for the Utils.extend function.

Also removed the unused (legacy) getQsValue function.