Test exists method