fix logging
+jsdoc
start to allow async component tests
make importing scripts into tests less brittle