To properly store priority in passed in pointer and return 0 for success. Also add a test for verifying that it works correctly.
To properly store priority in passed in pointer and return 0 for success. Also add a test for verifying that it works correctly.