Are the table actions always in the same order? These hard-coded array indexes look like they will make the tests fragile.