LB-1706: Fixed testing

For some reason the deferred isn't returned form phantomjs.