added two controller tests for random sampling