Fix insert_at issue

target position should be decremented by one if higher than current position.
Fixes #8.

Includes tests.