Add chai globals to jshintrc
Add clear() function + tests

Closes #10