Move some requires
Add basic tests for update process and normalize helper

Discovered and fixed a small bug in the normalize helper while doing it :)
Merge pull request #10 from porras/test-update

Add basic tests for update process and normalize helper