unit tests for promoting and demoting users to apprentices