tests: Convert system file tests to Autotest framework.