bug fix: file test did not work