updated resource test for views