add pry-debugger
remove debugging code
refactor test step
Force publishing in tests require @javascript

The use of publish :force needs to be coupled with a javascript tag
delete duplicate audit trail test

made the funcational test more accurate
When publishing a document it has to be submitted first