Added functional tests for CSPPlugin

PS: I forgot to switch back to master when I was creating the new branch. Shouldn't hurt merge though.