Add a onResume test for #814