Added package checking to IntentComparator and added test cases