Fix unit test for profiles. references #2214