Updated migration and test cases

- Updated migration of List Maximum and List Minimum: added conditional
checking whether the nodes had key functions and migrate them
accordingly
- Added a test case for the above migration
- Removed Boolean value from sorting test