adding tests for Chain