controller tests passing again (fixed flagSet function)