Added tests for language-specific fencing

Not sure if you wanted a pull request or just for me to test my additions against mdtest and to add a few tests for my own purposes, but in case you wanted my tests, here they are.