Imported test-sync.rb

...to be extended with configurable impairments

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>