Rewrite test_csp.py test and removed some checks from CSPPlugin.