refactored testSpecApp layouts
added visibilitychange tests to all tests