Add math and string test. Reduce swing test sleeps and close swing
components.