remove duplicate lines
remove session in every tearDown fixtures to have clean session before each new tests
use context manager to create an application context in tests in place of do it manually