added test helpers
Implemented submit and submitResult socket endpoints
Merge branch 'test' into dev