Add a test to show some profile details, other work to tidy up the test a bit