Correct procedure completion logic and reanimate tests

Denys Barabash requested to merge den/refactoring-procedure-completion into master

Merge request reports