Add tests for case-(in)sensitive magic words

Parsoid needs these to make sure it doesn't regress along these lines, and for
some reason they aren't tested anywhere else.

Change-Id: Id8fd91b0d36d31f9bb209aa4088f1e28cadbd7ca
Merge "Add tests for case-(in)sensitive magic words"