Add test for OpenFile and bug fix