format matcher message function
move beforeEach to end of spec file
add back support for old api as deprecated