unit tests for magix.data multiple prototypes

added unit tests for magix.data's multiple prototypes features, and
sorting, both ascending and descending