chore(test): use mocha

Following #167 and #247

~~Here is a start with half of the tests.
Wait for it :)~~
This test should probably be kept to test <script type=module>