KAA-221: Got rid of double deaalocation. Fix unit test for the profile management.