Fixed deleting last build

And remove an useless test scenario.
Added deleting test.