Fixes for widget related tests under osx. Still one failing test in dock