Added PermissionListenerTest.
Added a permission listener test that passes.