Unittests for update handler