APP tests are disabled if app is not built
Current cmake script enables test for app if Python3 is found. But it does not check if bzip2 application will be built. So current cmake script will fail to configure if we specify ENABLE_LIB_ONLY=ON
or ENABLE_APP=OFF
options in cmake.
I've added an additional check for ENABLE_APP for bzip2 tests.