Fixed bug #2 when no login screen and added units tests with robelectric