Modify tests to support the rubinius regex(2)

DESC:
[Change]
1. Modify tests to support the rubinius regex
Change hash style to 1.8.7 in tests

DESC:
[Change]
1. Change hash style to 1.8.7 in tests
For testing 1.8.7