Test case for as operator.