Hello Andreia,
The unit testing module rolls back your changes by default! This is documented here ->
By default, all changes that are made when running a microflow test (committing new or changed objects) will be rolled back at the end of the test run. You can change this behavior for each test suite using the Rollback microflow tests after execution checkbox, which is visible after selecting a test suite. Note that the option only affects tests in the selected test suite.
Short answer: Mendix doesn’t automatically undo changes after a test. If a microflow commits data, it stays in the database. :/
The Unit Testing module is mainly for checking logic, not for rolling back data. So you usually handle cleanup yourself. Common approaches are:
For a presentation, the easiest option is a test environment plus a simple “reset demo data” microflow.