Add tests for cast operations