added test to views permissions