Added a more complex test, now failing (i.e. found a bug)