Add missing psycopg2 import.
Add wav file.
Close session in tests.