added alert test for failed userreg;
added test_helper for tests
added test for login and failed login