onresume event testing