minor bug (endpoint binding)
Fix testandreset data reading
Add tests.

Add a shell-script based to test the TestAndReset module (checks
that the test sequence would be played).