Fix deprecation message for `expected`

The message says to use `expected_array` rather than `expected_as_array`