added invalid parameters exception, added base qunit testing suite