reuse #controller_path logic in test case

This logic was redundant with AbstractController::Base#controller_path.