Fixed thread reference stop command.
Fixed thread reference command test class.