created tests for update functions