#185, detect and avoid swing thread violations in the test