Move legacy JApplication test, cleaning up other application tests, add stub for app close
Moving some test classes to legacy to match file structure, fix missing import