Adding bit length tests to secrets

Change-Id: I49fb9ffc1202c35c864d02870d2941bf3ced829c