Updating sample-code and adding test for selendroid contactmanager test

- #3401
a comma can be used to eliminate the double var