Added specs for task access. Refactored ability a bit.