adding testing for server/admin.js

added promoteToAdmin and demoteFromAdmin tests