fix test for custom optimize

mocking a return type for tuple packaging