Make test utility cross platform.
Make r2f utility cross platform.