Addressed test issues. Added travis ci.