Generalize tests for update action