testing for lswithflags functionality