rendering correct js view and testing it