Test back button functionality