test to check if collection exists