Problem: test_security_curve does't try wrong mechanisms

Solution: check that it rejects attempts to connect to a CURVE server
using NULL or PLAIN client.
Merge pull request #1186 from hintjens/master

Problem: test_security_curve does't try wrong mechanisms