Testing code for programming