Fixes up the permissions attribute and tests... was accidentally storing persisted data in the attribute.