restored old test and added sorted for correct key output order
removed parts of deprecated API and added args to recursive parents too