Test code for tutorials