Add mock library
Add tests for api
Added travis config