Fixing stack trace + source for commandLine/api/cd test