Make tests file name shorter
Write to log file in production and test environments