Fixed deleting last build

And remove an useless test scenario.
I specifically did 3 commits:

* remove outdated test
* write new test
* fix issue