Implemented first draft of unit tests by using 'mocha' and 'should';
Fixed require bug in index.js and also refactored access() calls to avoid code repetition;