- Makes test_target method more generic.