Filled out Repository deserialization test and added Permissions object