var assert = require('assert'),
    fs = require('fs'),
    path = require('path');

var current = Object.keys(require('../lib/bibref').all);

var previous = JSON.parse(fs.readFileSync(path.join(__dirname, 'ref-list.json'), 'utf8'));

suite("Previous references are maintained", function() {
    previous.forEach(function(key) {
        test("Reference [[" + key + "]] is maintained.", function() {
            assert.ok(current.indexOf(key.toUpperCase()) > -1);
        });
    });
});

@@ -96,20 +96,8 @@
 t = 
-Object.keys(
 requ
@@ -120,13 +120,8 @@
 ef')
-.all)
 ;%0A%0Av
@@ -409,39 +409,21 @@
 ent.
-indexOf(key.toUpperCase()) %3E -1
+get(key)%5Bkey%5D
 );%0A 

Change no-ref-loss test as suggested by Tobie