fix to the unit test: moving stuff to the before block was a bad idea