state unit tests