fixes #41: corrected check_secure function to ignore quoted text and added associated unittests