fix broken tests in haxe 3.1+