add file test code