Yeah this is stuff I also didn't know as a beginner. The casteling rule states: King can't pass through check. Nothing is said about the rook here but it easy to assume that. I atleast did before.
En passant only applies to pawn vs pawn because pawns are less valuable then other pieces and therefor the pawn jumping move passed another pawn is the important one to prevent with the en passant rule. This is also something not easy to understand for someone very new to chess.
These may fall under the who really cares and I'm a dummy category so you have been forewarned.
I didn't always know that you can legally castle when your rook is threatened. Ok, most of us know this but did you know that when castling long your rook can pass through a line of attack? So that would only apply to the b1 or b8 square. I wasn't sure if it was possible so I tried it on my Chessmaster game and it worked. It might be useful to know in case you have never thought of that before.
En Passant allows capture of a pawn passing through a line of attack by another pawn but did you consider that a pawn can be pushed forward two spaces to avoid capture by any other piece?