Fixes failing tests (except IE8)

This PR fixes failing tests in Suacelabs for all browsers but IE8. To be continued ...