Fix core parserTests for recent <gallery> changes