fixes JS test driver bug