Fixed api publish test