Created backend test using Nodeunit.

Integrated node unit and added some Node.js tests