Changed code for CommandAddTes
Tried the stub. Not complete