Added contract.txs testing. Actually had to change max -> min which was a mistake..
Not yet checked coding conventions.
flake8, fixed forgotten fee