fixed reversed order of classes in spec