Modify tests to support the rubinius regex

DESC:
[Change]
1. Modify tests to support the rubinius regex