Added JUnit testsuite for unit tests to ensure one-time login.