test use case as documented

A test for the nested permissions use case as written in the
documentation