fixed bug when publishing
moved publishedby to the context
cleanup
cleanup
moved tests to correct namespace