Rewrite tests for nose
Add Travis YAML
Merge branch 'tests'