Refactored priority and added test. Improved sink test.