You need to escape the special characters with a backslash \ in front of the special character.

eg. `sed 's/\*/t/g' test.txt > test2.txt`