adding tests for updating