More compat work

1. More compat tests
2. Add missed waitForCondition and waitForConditionInBrowser APIs