test: remove memleaks in tests.
fix: improve memory management forcing to release object as much as possible on stimuli destroy
test: releasing memory as much as possible