BasicManagement: Add tests history limit

This is an evolution of PR #12. I didn't really have anything against that patch but I felt it could be possible to achieve the same with less work and less state variables.

It's certainly less code, and at least in my eyes it seems simpler... What do you think?