Fixing exceptions from chai. Adding comments to what the fixes were and ...

Because the tests were not executing due to exceptions. Now they work. Also, explaining some gotchas from the async nature of the test runner and expectations.