Creating automated tests for mobile devices and applications