Updated database connect code in tests so we can run the test on Heroku.
Updated database connect code in tests so we can run the test on Heroku.
Added binding to switch collection name for testing.