Use a test file instead of /bin/echo in spec.