Removes test/misc.js and moves tests to appropriate location

The `test/misc.js` seems to be a relic from somewhere, and contains elements of `ec.js`, `ecdsa.js` and even `eckey.js`.
In this pull request: I have moved the two tests it contained to the appropriate test modules, and removed `test/misc.js`.