throwing runtime exception if string is passed to step when a table is expected