Updated flex test