Convert PRINT and WRITE tests to Autotest framework.