fixed tests in production/development mode