Minor change - use SynchronousTestCase instead of TestCase

Except in the unitgration tests which are asynchronous.

Not particularly important, but a useful cleanup @lvh pointed out.