Exit run-tests with correct error code

review7411002
'res' should be global in load_modules

issue4045
Use a more expressive tree icon

issue4034
Add test on browsing history

review5451002
Use unittest skipIf

review9491002
Add tree_state attribute on tree view

issue4028
review11331004