fixing minor issues detected while testing cash based accounting