adding nodeunit as testing script
rewriting tests for nodeunit
updating and fixing small bugs