Test swift publish method