Adding characterization tests and flagging tests
Fixing the bug, Test to come later