security integration tests

Untested, not ready for merge.
2 spaces