Fixed single inheritance keys containing special chars, improved test