Fixes spike test

The inputs are going to be arrays so the single variable inputs need to be referenced from the first element of the
array instead of raising an error.