Add explanation and small optimizations to LanguageTest

@singingwolfboy or @sarina