Added possibility to pass a hash to assert_difference.