test($cordovaCapture): add unit tests