External program stub and its test