As noted by the question's title, what is the best way to preform unit testing on an application that behaves differently depending upon what user is currently logged in?
Also, for applications that maintain information on the internal state, what is the best way to preform the testing and to manage all of the tests?