Adding test cases for copytruncate.

Included expected behaviour for when copytruncate support is disabled.