some output formatting and permissions for test file