started moving stub scripts from index into mocha tests