Added unit tests for Flags<T>