Updated login init created tests

Updated login to redirect to tests when available. Updated init to
support new table definitions. Created tests.