added test for onUpdate