Improve unit test on Desmond:update

Write helper utilities assertEq and assertApprox (since Lua uses IEE-754
decimals and by extension, contains rounding errors).
Consolidate comments in import.lua
Introduce `assertIs` function for checking type