Add test for cast operator occurrences