Update unit tests for PhantomJS and create travis build config