tests - added test that creates user, authenticates, deletes user

this also includes many added test helpers (most refactored from run_tests) and some tests for mx nodes.