Added ContractsPageTest; fixed dumb NPE in ContractEditList