Executing target program and to check returned value