Cleaning up secret functional tests

* Replacing copy/paste oversized test with parameterized
* Adding tests for invalid secret bit length values

Change-Id: Id2164a0093c25c1bea37a2a0d3ec43b6074c80ba
Merge "Cleaning up secret functional tests"