test without onResume code