Fix 'npm test' failures on machines without Phantomjs installed