Fixed the page test in dashboard_controller