Fix tests

Dirty string comparison in asserts.

Should probably also move to `mocha` instead of `ava`, seems to be deprecated.