Support for remote test

Add remote_hosts parameter to run method for remote test.