Update tests.py

adapted test