fix the test, now it is not showing JFrame