Update 'as' test to include ref arg