fix tests using regexp