Fix test to run with Python 2.6 .

UI is excluded for the moment.