add tests
use Toplevel instead of toplevel so Haxe can read it
use Dynamic for Function