Fixed a problem where a state change would throw an exception if there are no callbacks registered on a class.
adding one more test, and bumping version
Merge pull request #15 from jtushman/14

14