Update tests.py

Fix
Merge pull request #7 from Bryukh/patch-3

Update tests.py