Remove unused flags and define DEBUG for make test.
Don't call fetch() if DEBUG is defined.