Test Driven Development with V8JS

My team needs to build tests for V8JS Custom Services hosted in Dreamfactory. How can we replicate the platform.api object that Dreamfactory has in order to implement automated unit tests in a testing engine? Perhaps there are mock services somewhere we can use? Please help.