Use syswrite to output in tests