Sets up an autotest buffer and provides convenience methods.