Some bug fixes for SlimerJS

Some tests were red with Slimerjs because of some issues with Gecko...