Refactor to make BLEDeviceTester a library