Added test for getFlags()