Use TypedJS in tests.
Fix tests.