Added Database connect to tests.js