Fixed problem with async application removal
Improved test
Authored by: artyom-beilis 2015-12-05
Parent: [r2339]
Child: [r2341]