Added nodeunit tests