test  usages of various phonegap native api