Permission and Mode basic test and functionality implemented.