added test for remote also some new functionality for the remote