simplified for in test