fixed user permission functional test