Added tests for charting and publisher

Added testing in for the charting and the publisher and created the
Publisher interface.