Testing pointers and ref arrays