Made test robust by ensuring the sort order of constructors returned by reflectionis consistent.