Added test on merging of user profiles

Part of bug 1210519

Change-Id: I0091abdcfc943fc306216c1e36c2fc49f3b0b8dc