added variables & nodeunit tests