Fix most specs and improve the testing environment

Prefer single-quoted strings when you don't need string interpolation or special symbols.