Helper method for testing modified.