Add unit tests for main activity.