test($cordovaBarcodeScanner): add unit tests