Added a profile page and some basic tests for it