Tests for modification of return value and exception.