Added on state startup callback.
Added nosetests to test requirements.
Callback tests running