Main Activity test completed

Tests for getNames() and also login() was added to the test class.