Finished bdd tests for directory.js