Corrected backwards flag-handling logic.  Now gives sets appropriate tests.