testing for navigator