reworking tests to work with typescript and nodeunit