checkFiles + tests