add and test chain method