Move test outside of block