Unit test for text-subfield fails but validation code is received

Could you help me understand why unit test fails for the Ticket: Text and Subfield Search, but the code for getting movies by genre is correct + I get validation code? The problem appears to be in cast method:

✕ Can perform a cast search with multiple cast members (5006ms)

Please check the getMovies function-> filter for Cast and make sure that its working for more than one cast element, logic is the same as in for genres field.

Kanika