finish test for quantum.js; TODO: check code coverage