Tests for the profile controller