Add basic tests for update process and normalize helper

It should be tested before working on fixing #4.