Added unit test for the logic that does the actual variable replacement for invoice template.