Make sure that the community string is spelled correctly with the correct punctuation. Also, make sure you are not testing a read only credential during a read/write test. Which tool are you using during the test? Is it a classic tool or the Work Space Studio? While most tools only require read only community strings some require read/write community strings.