In TestServer, check whether exec succeeds or not

Fixes #22