Adding bit length tests to secrets

Change-Id: I7c800c08dd977c9f65538fc6af5637299e870325
Fixing secrets bit length tests

Change-Id: I1c3d5a56fe076802a6d8c175df7734d8fc8cce17