move reset_test_database function and properly reset test databse with script command
remove database login and add production checks
Merge pull request #430 from squirrelo/fix-clean-test-environment

Fix clean test environment