Issue with undeploy

As we chatted the other day I send a pull request with the issue I had with the bundle undeployment by the container. I guess this is not being done on purpose, since the code is already in a test, but I could not figure out why. 

Copyright must be ASL2.0