test exactly as the tutorial