* refactored runTests.js tomake it more generic
* implemented more tests
* a few bugfixes based on the new tests (iface.js, injection.js)