Add possibility to provide mocks

This was previously not possible, because mocks call __init__ multiple times.
Add .travis.yml