build chains and collect liberties
more complex test case