logger now logs to stdout when debug is false
added manual print to test heroku log
generalized test_backend to work well with the deployed app in debug mode