Add testcase for pwrite64 bug