added testing with phantom and mocha