diff --git a/test/run.js b/test/run.js
index <HASH>..<HASH> 100644
--- a/test/run.js
+++ b/test/run.js
@@ -22,6 +22,7 @@ describe('runTests', function () {
     stdout: 'stdout',
     stderr: 'stderr'
   }
+  process.env.NVM_DIR = '<nvm>'
 
   beforeEach(function () {
     logger = {
@@ -63,4 +64,17 @@ describe('runTests', function () {
           'git clone . some dir/some version')
       })
   })
+
+  it('runs test cases', function () {
+    util.exists.resolves()
+    util.exec.resolves(defaultCommandOutput)
+    const runTests = requireInject('../lib/run', stubs).runTests
+
+    return expect(runTests('some dir', 'some version'))
+      .to.eventually.be.fulfilled.then(function () {
+        expect(util.exec).to.have.been.calledWith(
+        'source <nvm>/nvm.sh && nvm use some version && npm install && npm test',
+        {cwd: 'some dir/some version', shell: '/bin/bash'})
+      })
+  })
 })
Add run test cases command runTests test case