Updating sample-code and adding test for selendroid contactmanager test

- #3401