Wrote unit tests for ProfilesController.