Added tests for sorting machines.