test optimize combinations
fixed onError