test now has loginCtrl for testing under different user accounts, directives tweaked