Add some tests for the Permissions model.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>