wrote model tests for contract