Added AsDelegate registration helper method

Added tests to verify new method