fix #13;remoting call timing bugfix
make remoting code testable, and add more timing test
update