Wrote unit tests for MasterSecret