[BACKLOG-627] fix test for permission check