add a test to check the priority management