Add delRecord() and a number of associated tests