Add merge_test to all_tests
Change return type of min and max to dynamic