testing file detection