Test code for agreement