Add merge sort as functional test