Testing code for CS312