Refactoring test to use assert_nothing_raised.