Test check and checkmate checks