Explicitly set locale when generating test output

When not setting `LC_ALL`, the test output is generated according to
the current locale. This causes localized date strings to be written
into the expected test output.