Adds some basic tests for callbacks

If nothing else, for testing purposes, I need to make gathering AJAX settings separated from calling AJAX.
Then I will be able to verify the properties of settings without actually worrying about cancel AJAX calls.