refactor deprecated method
adapt testcases to work with robotium 4.2.1