Added tests of the profile controller