This whole block could be simplified too:
``` JavaScript
return TESTS.filter(function(test) {
    return ((new Date() - new Date(test.expiry)) > 0);
}
```