PatternState test works closer to as intended, although it's a bit ugly
at the moment.