Refactoring the test center.

The aim is to be able to provide a better environment for UI tests.