Refactoring test to use assert_nothing_raised.
Merge pull request #2220 from yui-knk/refactor-test

Refactoring test to use assert_nothing_raised.