Add validation and unit widget unit tests.

Test plan:
./node_modules/.bin/mocha --reporter spec -r node/environment.js
src/widgets/__tests__/unit-test.jsx

Auditors: alex