Bug #84, Improve `$.fn.checkValidity` function and QUnit tests

* Fix robustness of `.checkValidity()`
* Add function `typeof` unit tests to `tests/index.html`