Add nodeunit tests