Fixed testing errors from tutorial