test chainl and chainr