Added testing for insert method