Merge test code