Adds missing rest parameter to functions. Add script to run test expansions.