Lots of uneven blank lines, multiple blank lines and no blank lines.  Can I also suggest that the 'helper' functions or 'custom matchers' be moved either to the top, or better, moved to a separate file so that the set of tests are very clear and separate from test infrastructure you created to help with the tests.