Move legacy JApplication test, cleaning up other application tests, add stub for app close