Add limited/partial support for regex.prototype.test and string.prototype.search