Failing test on empty array