Adding tests for publication controller