Updated documentation instance tests
Added switch_collection context manager and method (#220)