Added a test for getPotentialTargets