Organized some tests.
Added tests for the change callback, fixing some bugs along the way.