Server context tests added.
Changed the hardcoded permissions to constants.