Added nodeunit tests.