Some security tests [MJ-753]

All tests pass.