convert tests to qunit tests