Add test case for JSR and close frames