[SPARK-3760] add multiple methods instead of method with default parameters and tests for new API