fix flags test to match structure change