Make sure things happen in the correct order when testing
Backport of r1156731
Note that this introduces a new method (not virtual, so BC), but it is a minimal change required for sane use of the kimaptest unit-testing library, and for the tests to actually run.
svn path=/branches/KDE/4.5/kdepimlibs/; revision=1157276