Added automated test for swing window