test($cordovaSpinnerDialog): add unit tests