Adding tests for first, last, and insert