tests for update functions