Added first round of functional tests for secrets

This is the first set of functional tests for secrets.

Change-Id: I450b00eb59a6207ad2ec75c1d411a00dbfef956f
Merge "Added first round of functional tests for secrets"