Switch unit tests to py.test
Improve UT, minor fixes
Test code cleanup
Update Travis CI
Remove assert_raises
Update Travis CI