Fix up unit tests. Check config url with isURL.

No issue
-validate url in config.js using validator.isURL
-fix up async flow in bootstrap unit tests
-make sure done handler is called on async tests
Merge pull request #2835 from jaswilli/fix-tests

Fix up unit tests. Check config url with isURL.