added mocha testing
Full testing using mocha is now ready to be written.