modified test-enc