test($cordovaAppAvailability): add unit tests