test($cordovaNetwork): add unit tests