Added a test case to demonstrate profile merging fix.