state check unit test missing.
failed because I added a check, unit tests