Implements the test (TE) command processing handler.