Test isMoveValid against castling moves