qtype_varnumunit fix codechecker issues.
Behat tests for qtype_varnumunit. #11425