Fixed mis-ordered build-in events

* Fixed dependency load issues
* Added Travis-CI support
* Updated test to support new API