Assert on flag negation logic, closes #4.