Adding test for ApplyAllChain