Test cases for same src and dest

This adds tests for cases where `src` and `dest` are the same (see #42).