Built a profile page and wrote some test cases