Raise exception when value is not equal to value_for_test