Nose and tox

Improve test and check with more complex test case.