The code is rather magic so a test case will help making sure that everything works well. The first case is a simple backing chain.