Make methods setUp and tearDown protected
Merge branch 'hotfix/4783'

Close #4783