added testing function and stripped from navigator namespace