adding polyglot test for pseudotype conversion
adding new date test for javascript outside the polyglot tests because the polyglot tests can't check if two js Date objects are equal