Add unit-tests for the /orphaned and /retired endpoints in the UI