Fixed the view filter for PJAX requests and fixed tests