add tests for exec
fix exec fails for invalid version