test with flags