tests: change made to handle creation with flags method