fixed pending unit tests, added login testcases