Fix profiles backend unit tests