Added tests for truncate