added tests for Firefox and Chrome, work and pass on Mac