Write sequence tests.
Fix windows.open function.