added tests for content view publish

Please review it 
Thanks