Change publicMessage method and tests. Remove public flag