Fixed castling move generator and added tests.