add mocha test suites for node and browser

Mocha tests added using "qunit" interface for both node and browser suites.
Also added support for the case-insensitive attribute selector, L96-101.