Add tests for minimum priority and selected tasks