Updated according to the review comments

1. Add a test to check  window['']
2. Remove two invalid assertions
3. Update some descriptions and etc.