fixing unit test where xpconnect function.tostring output is different than node and rhino