Init phpunit structure
tests, fix bug discovered while writing tests :o
add travis.yml
Merge branch 'feature-tests' into dev