help me test if recievestate is being called