simplify file magic string check test