make tests pass using stubbing similar to #reorder