added a config file and configure test to use test database instead of dev one