Migrate to a Testing Framework that can be executed on node and in the browser as well. Add missing nodejs tests.