adding file test logic