Added test for chain and value