Running functional tests by using angularResource and mocha