test($cordovaPinDialog): add unit tests