adding static file test to ensure onClose is called