Added tests for updating priority for a task