merge test functionality