added titanium test code for mobile client