Fix most specs and improve the testing environment

`%w`-literals should be delimited by `(` and `)`