Preventing the default action of back button to be tested.