Updated StateMock class to behave the same as a State;
Added tests for cleaning up machine transitions when state is destroyed;
Added cleaning up transitions when states are destroyed;
Fixes #1;