proper test coverage for record-contract