Fixed api spec test error.