fixed creating duplicated publishers and tests for it