fix regex with tests