bettered visibilitychange tests in testspecapp