Fixes some test that were failing due to bad mocking.

A CBPeripheral was being mocked but its identifier and name
method wasn't.