added tests to ma
demo of authentication in ma delegate
refactored test tools