[AS/DT] Refactored Resource controller and changed test for VP Sort