Add support for using autotest with files