Fix test failures on Mac

This fixes all the test failures on my MacBook (GeForce 650M) in Chrome and Firefox.  There are still some test failures on our MacMini (AMD).