Tests tweaks

* Remove unused local `equals` function
* Use the `_.next` utility function
* Remove spaces at the end of lines
* Remove tinytest inline documentation