old_contents: // Init reqs
  /* jslint node: true */
  /* global describe: false */
  /* global it: false */
  'use strict';
  
  var spawn   = require('child_process').spawn,
      request = require('request'),
      expect  = require('chai').expect;
  
  // Tests
  
  // Test for options
  describe('options', function() {
  
    var child      = spawn('node', ['app/memcing.js', '-load-file', 'test/cmds-lf.txt', '-listen-http', ':12082', '-verbose'], {stdio: 'inherit', env: process.env}),
        restUrl    = 'http://127.0.0.1:12082',
        urlEntries = restUrl + '/entries';
  
    // listen-http
    describe('-listen-http', function() {
      it('should listen HTTP requests', function(done) {
        request(restUrl, function (err, res, body) {
          if(!err) {
            expect(res.statusCode).to.equal(200);
            expect(body).to.equal('');
            done();
          } else {
            done(err);
          }
        });
      });
    });
  
    // load-file
    describe('-load-file', function() {
      it('should load commands from the given file', function(done) {
        request(urlEntries, function (err, res, body) {
          if(!err) {
            var resData = JSON.parse(body);
            expect(res.statusCode).to.equal(200);
            expect(resData).to.be.a('array');
            expect(resData).to.have.length(3);
            expect(resData[0]).to.be.a('object');
            expect(resData[0]).to.have.property('key');
            expect(resData[0]).to.have.property('val');
            expect(resData[0]).to.have.property('ts').to.be.above(0);
            expect(resData[0]).to.have.property('expTS');
            done();
          } else {
            done(err);
          }
          child.kill();
        });
      });
    });
  });
new_contents: // Init reqs
  /* jslint node: true */
  /* global describe: false */
  /* global it: false */
  'use strict';
  
  var spawn   = require('child_process').spawn,
      request = require('request'),
      expect  = require('chai').expect;
  
  // Tests
  
  // Test for options
  describe('options', function() {
  
    var child      = spawn('node', ['app/memcing.js', '-load-file', 'test/cmds-lf.txt', '-listen-http', ':12082', '-verbose'], {stdio: 'inherit', env: process.env}),
        restUrl    = 'http://127.0.0.1:12082',
        urlEntries = restUrl + '/entries';
  
    // listen-http
    describe('-listen-http', function() {
      it('should listen HTTP requests', function(done) {
        request(restUrl, function (err, res, body) {
          if(!err) {
            expect(res.statusCode).to.equal(200);
            expect(body).to.equal('');
            done();
          } else {
            done(err);
          }
        });
      });
    });
  
    // load-file
    describe('-load-file', function() {
      it('should load commands from the given file', function(done) {
        request(urlEntries, function (err, res, body) {
          if(!err) {
            var resData = JSON.parse(body);
            expect(res.statusCode).to.equal(200);
  
            expect(resData).to.be.a('array');
            expect(resData).to.have.length(3);
  
            expect(resData).to.have.deep.property('[0].key', 'hello');
            expect(resData[0]).to.have.property('ts').to.be.above(0);
  
            expect(resData).to.have.deep.property('[1].key', 'counter');
            expect(resData[1]).to.have.property('val').to.be.equal(1);
  
            expect(resData).to.have.deep.property('[2].key', 'bye');
            expect(resData[2]).to.have.property('expTS').to.be.above(new Date().getTime());
  
            done();
          } else {
            done(err);
          }
          child.kill();
        });
      });
    });
  });
subject: Improve testing for -load-file