Adding js test helpers.