Merge pull request #30 from MessiJS/more-tests

Wait for the dialogs to close.
Add a coveralls script to package.json.