Clear cartridges when applications are reloaded, fix downloadable application test

[merge]