test for file not directory