Add tests for in memory permission provider