testing closed flag