added test for MTL with trailing white space
(cherry picked from commit 8ce6277)