test($cordovaPrinter): add unit tests