Refactored literals to constants.
Added function tests for profile page