tests for #296
convert tuple to parameters for #296
fix #296