fixed and extended test of main activity