testing the phonegap device detection