Add missing expect script for api tests