test bugfixing
Fixed bug that broke updating navigator.userAgent and tests relying on its value