add tests.py database
minor tests.py
minor tests.py