Added nodeunit tests and set more restrictive jshint