WEIGHT: Convert test to Autotest framework.