Add support to test rake tasks and test promote/demoting users