Corrected issue with SECRET_KEY not being set during test builds.