fixed making test in production mode