tests converted from tsUnit to qunit (can be run by chutzpah)