Using assertFile instead

No more warnings during tests.