improved unit tests

### Description
Fixed an old unit test that made 'release' before testing the outcome.