Added testInsert(), fixed null pointer error in toString()