#18 testing state recognition