add example file and extend test cases to copy