Fix a couple of bugs in executors. Use run_tests.sh as a pre commit