Fix AttributeError when explicitly specifying wait type, and add appropriate regression tests. (fixes #4)
Merge pull request #5 from alexkuang/master

Fix AttributeError when explicitly specifying wait type ...