Delete infinite loop from state's test