Update tests.py

add import for generic