Add build parameters to allow running test on local PhantomJS

Change-Id: I99f37403d58385a814347d36b0f8b1a35c63c282