Stabilize test suite

The test suite has been unstable lately because of some updates on dependencies. This stabilizes it.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.