string.gsub() now passes the correct argument(s) to the replacement function + updated tests