The first one seems okay since the error message should be showing what was passed into CanAttack, what was returned, and what was expected. Currently, the message shows what was passed into CanAttack twice and then what was expected. Therefore that’s confusing, and it probably was just a simple copy and paste error.
For the second one, “Knight and archer are awake. Prisoner is sleeping. Dog is not present” appears on lines 239-245 & 270-277 with the same inputs so yeah that test is duplicated.