Added smart quotes and fixed tests

This essentially #766, I fixed the failing CI tests, and I found a few leftover '.