Revert "Replace before(:all) hooks with before(:each) in unit tests"

This reverts commit 7f3c0ae66bb7658c78e72a80e74a687f6088e64f.