Fix libs and tests for marionette's chrome window handling (#32)