assert that it rejects on an empty array