Updated travis to run all the tests (was previously ignoring 2 tests that were failing on travis), added on_loaded callback, updated tests to ensure callbacks work correctly.