fix isAppInstalled regex and add some unit tests (fix #38)