Add more log to waitForComposite()

So we know better where we get stuck if tests time out.
Merge pull request #655 from zhenyao/log

Add more log to waitForComposite()