Use Firefox for tests to work in Travis
Add safe stringify