Don't connect automatically if Rails is defined and it is in the test env