Test way partitioning with security