Added tests for random sampling feature of controller and delete 2xp from controller