Added publisher controller togehter with a test.