Finally got the serialize test method to work again. Turns out, you need
to put the functionality in another thread so that the main gui can load
before executing the test.