Avoid improper checking, fixes #1584
Quick fix for the destroyer of sub application
Fix tests meaningless
Merge pull request #1591 from padrino/fix-destroyer

Avoid improper checking, fixes #1584