Add a test for demotions