Fix buggy comments with "--"

I rewrote the tests to use deepEqual which caught a bug in the buggy comments test.