test the 'exists' command