add tests for exec
fix exec fails for invalid version
hack around the hack around bash `echo`