test: Migrate to using assert context

* Update coding style on changed lines.
* Provide assert context to `setup` and `teardown` as they
  were lacking.
* Keep `raises` in jshint globals since that one is deprecated
  and only available as global.