Extension of publishing api for more convenient usage Added some tests for the underlying data structures