Add integration test for normalizeHash (Closes #1411).