small fix for test file and unsorted output