added test for randomTargetSelect