raise Invalid when extra items appear in data
update test for the length exception