castling unit tests