change autotest file to unittest