Added state validation to the Send state machine and removed the same validation from the tests.