Write tests for AbstractChain