add tests for Contract::representer.