Added detection of success/failure of statement submission
Start of unit test for submission of statements