cardiff: Fixing test suite

The test_suite was broken as we were comparing strings that were
representing complex structures. This patch does fix this by comparing
the structures by themselves.