Added proper tearDown in case file database is used in tests