Adding support for task priority in the SDK data abstractions

- Adding support for task priority in the SDK data abstractions
- Also added tests.