Make acceptance test use dictionary

Also print more helpful error message if the executable prints an error.