[AM] tests fixed. tests added

Added MainActivityTest.java; older tests fixed