Implemented nodeunit tests