There are lots of good techniques that can make testing much easier, but the simple one I want to suggest to you is this:
Shrink the size of your persistant "state" down to the smallest it can be. If it's possible, do not hold any state at all. Testing systems built with a functional paradigm in mind is generally easier because you don't have to consider all the different states you could be in