pagebeforehide test