For purposes of determining the validity of a contract requiring or involving a particular action by a municipality, the test for whether the action is governmental or proprietary should be whether the contract itself deprives a goveming body, or its successor, of a discretion which public policy demands should be left unimpaired.