Bugfixed file tests