Change test to compare instance ( don't know if it work like that in haxe)