fixed tests to work with mocha and phantom
imported snippets