fine-tuned tests so they would run on travis using both phantom and firefox