added tests for publishing api
documentation work