AddFunction -> RegisterFunction & fix aslbuilder-test