Make test of navigation to view more reliable