Minor refactoring (init utput and error as empty)

added test to confirm failure when the executable is missing